odoo.define('yqjd_style.tree_fields', function (require) {
    "use strict";

    var core = require('web.core');
    var ListView = require('web.ListView');
    var QWeb = core.qweb;

    ListView.List.include({

        row_id: function (row) {
            if ($(row).parents(".no_click").length>0 && $('.o_form_buttons_edit').css("display")=='none') {
                return undefined;
            } else {
                return $(row).data('id');
            }
        },



        $(function(){
            $("#panel h5.head").bind("mouseover",function(){
              $(this).next("div.content").show();
          });
            $("#panel h5.head").bind("mouseout",function(){
               $(this).next("div.content").hide();
          })
        })



    });
})